package com.itms.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * PACKAGE
 * @author 
 */
public class Package implements Serializable {
    private BigDecimal id;

    private String packageCode;

    private String packageName;

    private String packageType;

    private BigDecimal length;

    private BigDecimal width;

    private BigDecimal height;

    private BigDecimal weight;

    private BigDecimal levelNum;

    private String isPress;

    private BigDecimal maxNumberPerTray;

    private BigDecimal trayNo;

    private String isValid;

    private Date createDate;

    private BigDecimal createUserId;

    private Date lastUpdateDate;

    private BigDecimal lastUpdateUserId;

    private BigDecimal foldingratio;

    private String linecase;

    private String orderType;

    private static final long serialVersionUID = 1L;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getPackageCode() {
        return packageCode;
    }

    public void setPackageCode(String packageCode) {
        this.packageCode = packageCode;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public BigDecimal getLength() {
        return length;
    }

    public void setLength(BigDecimal length) {
        this.length = length;
    }

    public BigDecimal getWidth() {
        return width;
    }

    public void setWidth(BigDecimal width) {
        this.width = width;
    }

    public BigDecimal getHeight() {
        return height;
    }

    public void setHeight(BigDecimal height) {
        this.height = height;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public BigDecimal getLevelNum() {
        return levelNum;
    }

    public void setLevelNum(BigDecimal levelNum) {
        this.levelNum = levelNum;
    }

    public String getIsPress() {
        return isPress;
    }

    public void setIsPress(String isPress) {
        this.isPress = isPress;
    }

    public BigDecimal getMaxNumberPerTray() {
        return maxNumberPerTray;
    }

    public void setMaxNumberPerTray(BigDecimal maxNumberPerTray) {
        this.maxNumberPerTray = maxNumberPerTray;
    }

    public BigDecimal getTrayNo() {
        return trayNo;
    }

    public void setTrayNo(BigDecimal trayNo) {
        this.trayNo = trayNo;
    }

    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public BigDecimal getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(BigDecimal createUserId) {
        this.createUserId = createUserId;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public BigDecimal getLastUpdateUserId() {
        return lastUpdateUserId;
    }

    public void setLastUpdateUserId(BigDecimal lastUpdateUserId) {
        this.lastUpdateUserId = lastUpdateUserId;
    }

    public BigDecimal getFoldingratio() {
        return foldingratio;
    }

    public void setFoldingratio(BigDecimal foldingratio) {
        this.foldingratio = foldingratio;
    }

    public String getLinecase() {
        return linecase;
    }

    public void setLinecase(String linecase) {
        this.linecase = linecase;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Package other = (Package) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPackageCode() == null ? other.getPackageCode() == null : this.getPackageCode().equals(other.getPackageCode()))
            && (this.getPackageName() == null ? other.getPackageName() == null : this.getPackageName().equals(other.getPackageName()))
            && (this.getPackageType() == null ? other.getPackageType() == null : this.getPackageType().equals(other.getPackageType()))
            && (this.getLength() == null ? other.getLength() == null : this.getLength().equals(other.getLength()))
            && (this.getWidth() == null ? other.getWidth() == null : this.getWidth().equals(other.getWidth()))
            && (this.getHeight() == null ? other.getHeight() == null : this.getHeight().equals(other.getHeight()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getLevelNum() == null ? other.getLevelNum() == null : this.getLevelNum().equals(other.getLevelNum()))
            && (this.getIsPress() == null ? other.getIsPress() == null : this.getIsPress().equals(other.getIsPress()))
            && (this.getMaxNumberPerTray() == null ? other.getMaxNumberPerTray() == null : this.getMaxNumberPerTray().equals(other.getMaxNumberPerTray()))
            && (this.getTrayNo() == null ? other.getTrayNo() == null : this.getTrayNo().equals(other.getTrayNo()))
            && (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getLastUpdateDate() == null ? other.getLastUpdateDate() == null : this.getLastUpdateDate().equals(other.getLastUpdateDate()))
            && (this.getLastUpdateUserId() == null ? other.getLastUpdateUserId() == null : this.getLastUpdateUserId().equals(other.getLastUpdateUserId()))
            && (this.getFoldingratio() == null ? other.getFoldingratio() == null : this.getFoldingratio().equals(other.getFoldingratio()))
            && (this.getLinecase() == null ? other.getLinecase() == null : this.getLinecase().equals(other.getLinecase()))
            && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPackageCode() == null) ? 0 : getPackageCode().hashCode());
        result = prime * result + ((getPackageName() == null) ? 0 : getPackageName().hashCode());
        result = prime * result + ((getPackageType() == null) ? 0 : getPackageType().hashCode());
        result = prime * result + ((getLength() == null) ? 0 : getLength().hashCode());
        result = prime * result + ((getWidth() == null) ? 0 : getWidth().hashCode());
        result = prime * result + ((getHeight() == null) ? 0 : getHeight().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getLevelNum() == null) ? 0 : getLevelNum().hashCode());
        result = prime * result + ((getIsPress() == null) ? 0 : getIsPress().hashCode());
        result = prime * result + ((getMaxNumberPerTray() == null) ? 0 : getMaxNumberPerTray().hashCode());
        result = prime * result + ((getTrayNo() == null) ? 0 : getTrayNo().hashCode());
        result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode());
        result = prime * result + ((getLastUpdateUserId() == null) ? 0 : getLastUpdateUserId().hashCode());
        result = prime * result + ((getFoldingratio() == null) ? 0 : getFoldingratio().hashCode());
        result = prime * result + ((getLinecase() == null) ? 0 : getLinecase().hashCode());
        result = prime * result + ((getOrderType() == null) ? 0 : getOrderType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", packageCode=").append(packageCode);
        sb.append(", packageName=").append(packageName);
        sb.append(", packageType=").append(packageType);
        sb.append(", length=").append(length);
        sb.append(", width=").append(width);
        sb.append(", height=").append(height);
        sb.append(", weight=").append(weight);
        sb.append(", levelNum=").append(levelNum);
        sb.append(", isPress=").append(isPress);
        sb.append(", maxNumberPerTray=").append(maxNumberPerTray);
        sb.append(", trayNo=").append(trayNo);
        sb.append(", isValid=").append(isValid);
        sb.append(", createDate=").append(createDate);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", lastUpdateDate=").append(lastUpdateDate);
        sb.append(", lastUpdateUserId=").append(lastUpdateUserId);
        sb.append(", foldingratio=").append(foldingratio);
        sb.append(", linecase=").append(linecase);
        sb.append(", orderType=").append(orderType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}